class Solution {
public:
    string pathEncryption(string path) {
        string str;
        for (auto& c : path)
        { 
            if (c == '.')
            {
                str += " ";
            }
            else
            {
                str.push_back(c);
            }
        }
        return str;
    }
};